import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:bilibili/core/extension/int_extension.dart';
class HomeTabBar {

  static final Color mainColor = Colors.pinkAccent;
  static List<Widget> _tabs = [
    Tab(text: "直播"),
    Tab(text: "推荐"),
    Tab(text: "热门"),
    Tab(text: "追番"),
    Tab(text: "影视"),
    Tab(text: "建党百年"),
  ];

  static PreferredSizeWidget buildTabBar(BuildContext context) {
    return TabBar(
      isScrollable: true,
      indicatorColor: mainColor,
      labelStyle: Theme.of(context).textTheme.headline2,
      labelColor: mainColor,
      indicatorSize: TabBarIndicatorSize.label,
      unselectedLabelColor: Colors.black,
      onTap: (index) {

      },
      tabs: _tabs

    );

  }

}
